<?php $this->load->module('index/index/head',array());?>
<?php $data = $val ;?>
<div class="content">
    <form action="<?php echo $next_url;?>" method="post" class="formvalidate">
    <div class="order_content">
        <div class="order_content_tp">订单详情确认</div>
        <div class="order_content_bp">
            <div class="order_title">【<?php echo $data['line_info']['short_name'];?>】<?php echo $val['line_info']['line_name'];?></div>
            <div class="order_con">
                <div class="order_con_tp">
                    <div class="order_xap"><span class="mp">订单编号：</span>201512451</div>
                    <div class="order_xap"><span class="mp">发团时间：</span>2015/6/10</div>
                    <div class="order_xap"><span class="mp">下单时间：</span>2015/6/10<span class="xiatime">15:11</span></div>
                </div>
                <div class="order_con_bp">
                <?php if(isset($data) && ! empty($data)):?>
                    <table border="0">
                        <tr class="order_top_list">
                            <td width="130" class="order_top_list_chujing">跟团游</td>
                            <td width="530">产品信息</td>
                            <td width="175">游玩时间</td>
                            <td width="165">人数</td>
                            <td width="130">单价</td>
                        </tr>
                    <?php if(isset($data['price_list']) && ! empty($data['price_list'])):?>
                        <?php foreach($data['price_list'] as $key=>$val):?>
                            <tr class="order_top_list_t_con">
                                <td></td>
                                <?php if( ! $key):?>
                                    <td><?php echo $data['line_info']['line_name'];?></td>
                                    <td><?php echo $data['go_info']['go_date'];?></td>
                                <?php else:?>
                                    <td></td>
                                    <td></td>
                                <?php endif ;?>

                                <td><?php echo $val['price_name']?>：<?php echo $val['num']?>位</td>
                                <td class="order_prise">￥<?php echo $val['price']?></td>
                                <input type="hidden" name="price[<?php echo $key;?>]" value="<?php echo $val['price'];?>" />
                            </tr>
                        <?php endforeach;?>
                    <?php endif;?>
                    </table>
                <?php endif;?>
                </div>
            </div>
        </div><div class="order_jine">合计金额：<span>￥<?php echo $data['total_price']?></span></div>
        <div class="order_kefu_content">
            <div class="order_con">

                <div class="order_con_bp">
                    <div class="order_con_kehu_tp">客户信息</div>
                    <div class="order_con_kehu_bp">
                        <div class="order_con_kehu_xinxi">
                            <div class="order_con_kehu_xinxi_lt">联系人信息</div>
                            <div class="order_con_kehu_xinxi_rt">
                                <ul class="order_xianxi">
                                    <li><span>中文姓名：</span><?php echo $data['contact_info']['name'];?></li>
                                    <li><span>手机号码：</span><?php echo $data['contact_info']['phone_num'];?></li>
                                </ul>
                            </div>
                        </div>
                        <div class="order_con_kehu_xinxi order_con_kehu_butt">
                            <div class="order_con_kehu_xinxi_lt">游客信息</div>
                            <div class="order_con_kehu_xinxi_rt">
                                <?php $type_array = array('1'=>'身份证', '2'=>'护照', '3'=>'军官证');?>
                                <?php if( ! empty($data['tourist_data'])):?>
                                <?php foreach($data['tourist_data'] as $k=>$v):?>
                                    <ul class="order_xianxi order_youke_xinxi">
                                        <li class="xin_youke">游客<?php echo $k+1;?></li>
                                        <li><span>中文姓名：</span><?php echo $v['name'];?></li>
                                        <li><span>手机号码：</span><?php echo $v['phone_num'];?></li>
                                        <li><span>证件类型：</span><?php echo $type_array[$v['id_card_type']]?>，<?php echo $v['id_number'];?></li>
                                    </ul>
                                <?php endforeach;?>
                                <?php endif;?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="order_pries">
        <div class="order_pries_lt"><a href="#">〈返回修改</a><span>应付总额：</span><span class="jiage">￥7755</span></div>
        <div class="order_pries_rt">
            <div class="order_pries_rt_quxiao"><a href="javascript:;" id="js-cancel-line-order">取消订单</a></div>
            <div class="order_pries_rt_quren"><button type="submit">点击确认</button></div>
        </div>
    </div>
    <input type="hidden" name="act" value="step_2" />
    <input type="hidden" name="line_id" value="<?php echo $data['line_info']['line_id']?>" />
    <input type="hidden" name="go_id" value="<?php echo $data['go_info']['go_id']?>" />
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $('#js-cancel-line-order').click(function () {
            var url = '<?php echo site_url('xianlu/' . $data['line_info']['line_id'] . '.html');?>';
                window.location.href = url;
        })
    })
</script>
<?php $this->load->module('index/index/order_footer');?>